import { h } from 'vue'

const DynamicComponent = (props, context) => {
  return h(props.name, context.attrs, context.slots)
}

DynamicComponent.props = ['name']

export default DynamicComponent
